package com.xueyi.system.batchManager.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.batchManager.domain.dto.BatchManagerDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

import java.time.LocalDateTime;

/**
 * 生产批次 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_batch_manager", excludeProperty = {"name", "sort"})
public class BatchManagerPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 批次名称
     */
    @Excel(name = "批次名称")
    @TableField("batch_name")
    private String batchName;

    /**
     * 批次编号
     */
    @Excel(name = "批次编号")
    @TableField("batch_code")
    private String batchCode;

    /**
     * 加工批次
     */
    @Excel(name = "加工批次")
    @TableField("process_batch")
    private String processBatch;

    /**
     * 加工批次编号
     */
    @Excel(name = "加工批次编号")
    @TableField("process_batch_code")
    private String processBatchCode;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    @TableField("product_name")
    private String productName;

    /**
     * 产品编号
     */
    @Excel(name = "产品编号")
    @TableField("product_code")
    private String productCode;

    /**
     * 生产日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("production_date")
    private LocalDateTime productionDate;

    /**
     * 单位
     */
    @Excel(name = "单位")
    @TableField("unit_name")
    private String unitName;

    /**
     * 数量
     */
    @Excel(name = "数量")
    @TableField("num")
    private Integer num;

    /**
     * 状态(1启用 2停用)
     */
    @Excel(name = "状态(1启用 2停用)")
    @TableField("status")
    private String status;

    /**
     * 批次
     */
    @Excel(name = "批次)")
    @TableField("plant_id")
    private String plantId;

    /**
     * 产品id
     */
    @Excel(name = "产品id)")
    @TableField("product_id")
    private String productId;

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getPlantId() {
        return plantId;
    }

    public void setPlantId(String plantId) {
        this.plantId = plantId;
    }

    public void setBatchName(String batchName) {
        this.batchName = batchName;
    }

    public String getBatchName() {
        return batchName;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setProcessBatch(String processBatch) {
        this.processBatch = processBatch;
    }

    public String getProcessBatch() {
        return processBatch;
    }

    public void setProcessBatchCode(String processBatchCode) {
        this.processBatchCode = processBatchCode;
    }

    public String getProcessBatchCode() {
        return processBatchCode;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductionDate(LocalDateTime productionDate) {
        this.productionDate = productionDate;
    }

    public LocalDateTime getProductionDate() {
        return productionDate;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getNum() {
        return num;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
